import { IsInt, IsString, Min, Length } from 'class-validator';

export class CreateCourseOfferingDto {
  @IsInt()
  cno: number;

  @IsInt()
  semester_id: number;

  @IsInt()
  @Min(10)
  capacity: number;

  @IsString()
  @Length(5, 100)
  location: string;
}